package com.yinlixian.frame.admin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;


/**
 * <p>
 * 角色定义表
 * </p>
 *
 * @author yudm
 * @since 2017-03-01
 */
@TableName("sys_role")
public class SysRole extends BaseEntity<SysRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 角色主键
     */
	@TableId("role_id")
	private Integer roleId;
    /**
     * 角色编码
     */
	@TableField("role_code")
	private String roleCode;
    /**
     * 角色名称
     */
	@TableField("role_name")
	private String roleName;
    /**
     * 描述
     */
	private String description;


	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	protected Serializable pkVal() {
		return this.roleId;
	}

}
